﻿@using WebEntities;
@model PP_Product
@{
    ViewBag.Title = Model.ProductName + "_产品信息_城市垃圾处理网";
    ViewBag.ClassHead = "head_bg7";
}
<div class="listMain">
    <div class="main_l">
        @Html.Action("CircleMenu", "PublicPartialView", new { miId = (int)ViewBag.MenuItemID })
        @*<div class="CataArea">
            <div class="cata-box">
                <div class="tit">
                    政企服务</div>
                <ul>
                    <li class="current"><i>·</i><a href="#">产品信息</a></li>
                    @for (int i = 0; i < 5; i++)
                    {
                        <li><i>·</i><a href="#">示范工程</a></li>
                    }
                </ul>
            </div>
        </div>
        <div style="height: 180px;">
        </div>*@
       @Html.Action("GetLastestProduct", "PublicPartialView")
        @Html.Action("Contact", "PublicPartialView")
    </div>
    <div class="main_r">
        @Html.Action("PageCurrentPath", "PublicPartialView", new { miId = (int)ViewBag.MenuItemID })
        <div class="detailContent">
            <div class="product-bar">
                <span class="tit">产品信息</span></div>
            <div class="conn-main">
                <div class="conn-l">
                    @{ string imgPath = Model.PP_ProductImg.Count() > 0 ? Model.PP_ProductImg.First().ImgUrl : Model.ProductCover; }
                    <a href="@imgPath" class="lightBoxShow">
                        <img src="@imgPath" alt="" width="270px" height="240px" onerror="this.src='/Resource/images/test6.png';" /></a>
                    <div class="subImg-list">
                        @foreach (PP_ProductImg imglist in Model.PP_ProductImg)
                        {
                            <a href="@imglist.ImgUrl" class="lightBoxShow" title="@imglist.Title">
                                <img src="@imglist.ImgUrl" alt="" width="50px" height="50px" /></a> 
                        }
                    </div>
                </div>
                <div class="conn-r">
                    <div class="nameMark fl">
                    </div>
                    <div class="pro-name fl">@Model.ProductName</div>
                    <div class="cls">
                    </div>
                    <table border="0" cellpadding="0" cellspacing="0" class="pro-attr-table" width="100%">
                        <tr>
                            <th>
                                【产品类别】
                            </th>
                            <td>
                                @Model.ProductType
                            </td>
                        </tr>
                        <tr>
                            <th>
                                【所属产品目录】
                            </th>
                            <td>
                                @if (@Model.PP_ProductCata != null)
                                {
                                    @Model.PP_ProductCata.ProdCataName
                                }
                            </td>
                        </tr>
                        <tr>
                            <th>
                                【价格】
                            </th>
                            <td>
                                @Model.UnitPrice
                            </td>
                        </tr>
                        <tr>
                            <tr>
                                <th>
                                    【品牌】
                                </th>
                                <td>
                                    @Model.Brand
                                </td>
                            </tr>
                            <th>
                                【生产商】
                            </th>
                            <td>
                                @Model.Company
                            </td>
                        </tr>
                        <tr>
                            <th>
                                【生产商地址】
                            </th>
                            <td>
                                @Model.Address
                            </td>
                        </tr>
                        <tr>
                            <th>
                                【应用领域】
                            </th>
                            <td>
                                @Model.AppDomain
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="cls">
                </div>
            </div>
            <div class="product-bar">
                <span class="tit">产品描述</span></div>
            <div class="conn-main ddx">
                <p>
                    @Html.Raw(Server.HtmlDecode(Model.Description))
                </p>
            </div>
        </div>
    </div>
</div>
@section Scripts {
    <script src="/Scripts/jquery.lightbox-0.5.js" type="text/javascript"></script>
    <link href="/Resource/css/jquery.lightbox-0.5.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $(".lightBoxShow").lightBox();
        });
 
    </script>
}
